package cn.edu.scau.cmi.luochenghao.chapter06;

class Monkey {
	void crySpeak(String s) {
		System.out.println(s);
	}
}

class People6_7 extends Monkey{
	void computer(int a,int b) {
		int c=a*b;
		System.out.println(c);
	}
	void crySpeak(String s) {
		System.out.println("***"+s+"***");
	}
}

public class Example6_7 {

	public static void main(String[] args) {
		Monkey monkey =new People6_7();
		monkey.crySpeak("I love this game");
		People6_7 people=(People6_7)monkey;
		people.computer(10, 10);

	}

}
